import request from '@/utils/request'

// 查询模型配置(模型、语音识别、语音合成等)列表
export function listLllmConfig(query) {
  return request({
    url: '/business/LllmConfig/list',
    method: 'get',
    params: query
  })
}

export function alllistLllmConfig(query) {
  return request({
    url: '/business/LllmConfig/alllist',
    method: 'get',
    params: query
  })
}


// 查询模型配置(模型、语音识别、语音合成等)详细
export function getLllmConfig(configId) {
  return request({
    url: '/business/LllmConfig/' + configId,
    method: 'get'
  })
}

// 新增模型配置(模型、语音识别、语音合成等)
export function addLllmConfig(data) {
  return request({
    url: '/business/LllmConfig',
    method: 'post',
    data: data
  })
}

// 修改模型配置(模型、语音识别、语音合成等)
export function updateLllmConfig(data) {
  return request({
    url: '/business/LllmConfig',
    method: 'put',
    data: data
  })
}

// 删除模型配置(模型、语音识别、语音合成等)
export function delLllmConfig(configId) {
  return request({
    url: '/business/LllmConfig/' + configId,
    method: 'delete'
  })
}
